sum=[1, 2.1, 2.3, 'a', '1', True]
result = 0
for each in sum:
    if (type(each) == int) or (type(each) == float):
        result += each
    else:
        continue
#return result
print(result)
